from common.base_page import BasePage


class UserPage(BasePage):
    UserName = ".mu-m-phone"
    UserLevel = ".mu-m-vip"
    UserBalance = "//html/body/div[3]/div/div[2]/div[2]/div[1]/div[3]/ul[1]/li[2]/a/em[2]"

    def _get_username(self):
        return self.get_text(self.UserName)

    def _get_vip_level(self):
        return self.get_text(self.UserLevel)

    def _get_user_balance(self):
        return self.get_text(self.UserBalance)
